// Copyright  2012 Petr TALLA. [petr.talla@gmail.com]
// This file is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This file is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY;  without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
// [http://www.gnu.org/copyleft/lesser.html]
//=============================================================================
#pragma once

#include <TcObject.h>
#include <vector>

class TcXattr;
class TcXdb;

//=============================================================================
class TcXobject : public TcObject{
//=============================================================================
public:
//<CONSTRUCTION>
    TcXobject();
//<ITEMS>
    int attrCount() { return attrs_.size(); };
    TcXattr* attrGet(int index);
    void append(TcXattr* attr);
    TcXdb* db() {return db_; };
//=============================================================================
//<DATA>
    std::vector<TcXattr*> attrs_;
    TcXdb* db_;
};


